package com.lz.fruitday.bean;

import android.database.Cursor;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by liuZhi
 * 2015/10/28
 */
@Table(name = "GOOD")
public class Good implements Serializable {
    @Id
    private long id;
    @Column(column = "NAME")
    private String name;
    @Column(column = "PRICE")
    private String price;
    @Column(column = "URL")
    private String url;
    @Column(column = "NUM")
    private int num;

    public Good() {
    }

    public Good(long id, String name, String price, String url,int num) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.url = url;
        this.num=num;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
